const express = require("express");
const debug = require("debug")("my-application");
const app = express();
const users = require("./routes/users");
const auth = require("./routes/auth");

app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use("/api/users", users);
app.use("/api/auth", auth);
app.listen(3030, (req, res) => {
  debug("服务器启动成功，http://localhost:3030");
});

